import $axios from '@/utils/request'

// 获取热门关键词
export const getHotKeys = () => {
  return $axios({
    url: '/api/getHotKeys',
    method: 'get'
  })
}

// 搜索接口
export const search = params => {
  return $axios({
    url: '/api/search',
    method: 'get',
    params
  })
}
